<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author LuoAnDong
@since 2019-06-20 22:29:10
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm" style="float:left;width:100%">
								
									<input type="hidden" name="formToken" th:value="${session.formToken}" />

<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">dfsGroupName</label>
	<div class="col-md-9">
		<input class="form-control" id="dfsGroupName" type="text" name="dfsGroupName" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">downloadNum</label>
	<div class="col-md-9">
		<input class="form-control" id="downloadNum" type="text" name="downloadNum" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">downloadPwd</label>
	<div class="col-md-9">
		<input class="form-control" id="downloadPwd" type="text" name="downloadPwd" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">expirationDate</label>
	<div class="col-md-9">
		<input class="form-control" id="expirationDate" type="text" name="expirationDate" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">文件扩展名</label>
	<div class="col-md-9">
		<input class="form-control" id="fileExt" type="text" name="fileExt" placeholder="文件扩展名">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">文件标识</label>
	<div class="col-md-9">
		<input class="form-control" id="fileFlag" type="text" name="fileFlag" placeholder="文件标识">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">文件名称</label>
	<div class="col-md-9">
		<input class="form-control" id="fileName" type="text" name="fileName" placeholder="文件名称">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">文件长度</label>
	<div class="col-md-9">
		<input class="form-control" id="fileSize" type="text" name="fileSize" placeholder="文件长度">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">地址链接</label>
	<div class="col-md-9">
		<input class="form-control" id="fileUrl" type="text" name="fileUrl" placeholder="地址链接">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">文件源</label>
	<div class="col-md-9">
		<input class="form-control" id="filesource" type="text" name="filesource" placeholder="文件源">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">是否公开</label>
	<div class="col-md-9">
		<input class="form-control" id="isPublic" type="text" name="isPublic" placeholder="是否公开">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">保存类型</label>
	<div class="col-md-9">
		<input class="form-control" id="saveType" type="text" name="saveType" placeholder="保存类型">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">阿里云链接</label>
	<div class="col-md-9">
		<input class="form-control" id="urlAlioss" type="text" name="urlAlioss" placeholder="阿里云链接">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">本地磁盘链接</label>
	<div class="col-md-9">
		<input class="form-control" id="urlDisk" type="text" name="urlDisk" placeholder="本地磁盘链接">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">fastdfs链接</label>
	<div class="col-md-9">
		<input class="form-control" id="urlFastdfs" type="text" name="urlFastdfs" placeholder="fastdfs链接">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">urlPaxossurlre</label>
	<div class="col-md-9">
		<input class="form-control" id="urlPaxossurlre" type="text" name="urlPaxossurlre" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">七牛链接</label>
	<div class="col-md-9">
		<input class="form-control" id="urlQiniu" type="text" name="urlQiniu" placeholder="七牛链接">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">urlbfs</label>
	<div class="col-md-9">
		<input class="form-control" id="urlbfs" type="text" name="urlbfs" placeholder="">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">urlmongodb</label>
	<div class="col-md-9">
		<input class="form-control" id="urlmongodb" type="text" name="urlmongodb" placeholder="">
	</div>
</div>
							
								</form>
							</div>

							<div class="card-footer">
								<button class="btn btn-primary" style="float:right" onclick="save()" type="button">保存</button>
							</div>

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<script th:src="@{/asserts/vendors/jquery/js/jquery.min.js}"></script>
	<script th:src="@{/asserts/vendors/jquery.form/jquery.form.min.js}"></script>

	<script th:src="@{/asserts/vendors/layer/layer.js}"></script>
	<script th:src="@{/asserts/js/global.js}"></script>

	<script type="text/javascript">
		// 保存操作
		function save() {
			console.log('save');
			$("#addForm").ajaxSubmit({
				url : ctx+"base/storage/storageFile/save",
				type : "POST",
				headers : {
					'Content-Type' : 'application/x-www-form-urlencoded'
				},
				success : function(data) {
					if (data.code == 200) {
						layer.msg("操作成功!");
					} else {
						layer.alert(data.message);
					}
				}
			});
		}
	</script>

</body>
</html>

